/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.ce.manager;

import java.util.ResourceBundle;

/**
 *
 * @author MAXIM
 */
public class Config {

    private static Config instance;
    private ResourceBundle resource;
    private static final String BUNDLE_NAME = "com.bionic.ce.manager.config";
    public static final String MYSQLDRIVER = "MYSQLDRIVER";
    public static final String MYSQLURL = "MYSQLURL";
    public static final String MAIN = "MAIN";
    public static final String ERROR = "ERROR";
    public static final String LOGIN = "LOGIN";
    public static final String GOTOREGISTER = "GOTOREGISTER";
    public static final String INDEX="INDEX";
    public static final String GOTOUPDATE="GOTOUPDATE";
    public static final String GOTOSHOWCURRENTUSERINFO ="GOTOSHOWCURRENTUSERINFO";
    
    public static final String GOTOADDNEWBANKACC="GOTOADDNEWBANKACC";
    public static final String GOTOBANKACCAOUNTSINFO="GOTOBANKACCAOUNTSINFO";
    public static final String GOTOBANKACCINFO="GOTOBANKACCINFO";
    public static final String GOTOBANKACCUPDATE="GOTOBANKACCUPDATE";
    
    public static final String GOTOADDNEWSYSTEMACC="GOTOADDNEWSYSTEMACC";
    public static final String GOTOSYSTEMACCAOUNTSINFO="GOTOSYSTEMACCAOUNTSINFO";
    public static final String GOTOSYSTEMACCINFO="GOTOSYSTEMACCINFO";
    public static final String DEPOSITGOTOBANKACCAOUNTSINFO="DEPOSITGOTOBANKACCAOUNTSINFO";
    public static final String WITHDRAWGOTOBANKACCAOUNTSINFO="WITHDRAWGOTOBANKACCAOUNTSINFO";
    
    public static final String GOTOQUERIES="GOTOQUERIES";
    public static final String GOTOACTIVEQUERIES="GOTOACTIVEQUERIES";
    public static final String GOTOMYQUERIES="GOTOMYQUERIES";
    public static final String GOTOADDQUERY="GOTOADDQUERY";
    public static final String GOTOMYQUERYUPDATE="GOTOMYQUERYUPDATE";
    public static final String GOTOMYQUERIESHISTORY="GOTOMYQUERIESHISTORY";
    public static final String SEARCHQUERIES="SEARCHQUERIES";
    public static final String GOTOSEARCHEDQUERIES="GOTOSEARCHEDQUERIES";

            
    public static Config getInstance() {
        if (instance == null) {
            instance = new Config();
            instance.resource = ResourceBundle.getBundle(BUNDLE_NAME);
        }
        return instance;
    }

    public String getProperty(String key) {
        return (String) resource.getObject(key);
    }
}
